#ifndef SERVER_H
#define SERVER_H

#include <QThread>
#include <QApplication>

#include "config.h"

class Server : public QThread
{
    Q_OBJECT
public:
    static Server *Get()
    {
        static Server s;
        return &s;
    }

    explicit Server();

    bool isSD2In = false;
    bool isExit = false;
    int  isSD2CheckCnt = 0;
    void run() override;
    bool isMountPoint(const char *mountPath);
    bool isSDCardMount();
    void CheckSD2State();
    void checkRW();

signals:

};

#endif // SERVER_H
